You are here: EK2100 Examples > Executing a Script on Boot-Up

Executing a Script on Boot-Up

The RF220 engines in the EK2100-220 kit are the fundamental connection point between hardware and the Internet of Things. The RF220 is essentially a microcontroller with an embedded RF radio and memory, but the thing that makes it special is the SNAP network operating system.

The SNAP Engines on the SN132 SNAPstick and SN171 protoboard are pre-loaded with the McastCounter.py demo SNAPpy script. This demo script showcases a small portion of the SNAP node’s capabilities and gives you a chance to get familiar with the nodes without installing any software on your PC.

  1. Plug your SNAPstick into a powered USB port. A power indicator LED on the module will light to indicate it's powered.
    Be sure to keep the SNAPstick in a place where you can see the LEDs. Since this is the only form of human-interpretable output on this node, we’ll use them in a couple of demonstrations.
  2. Power up your protoboard by connecting the battery pack (with batteries installed!) to the VBAT IN plug. If all goes well, a LED should start to blink.

NOTE: If a LED doesn't flash you may not have power. Double-check to see if the "PWRSEL" jumper is set to ""VBAT" (see image in the "WAIT! It didn't work..." section below).

  1. Press the pushbutton on the protoboard.

NOTE: There is a "S1SEL" jumper on each SN171 board that selects between "button is RESET" and "button is GPIO_5". Make sure the jumper is in the position labeled "GPIO5" on the silk-screen, or the demo won't work (see image in the "WAIT! It didn't work..." section below).

Voila! You have interaction! The LED on the SNAPstick will change its pattern (yellow, green, amber) every time the pushbutton is pressed.